package com.week.tiny_video.service;

import com.week.tiny_video.pojo.Category;

import java.util.List;

public interface CategoryService {

    public void add(Category category);

    public Category get(int id);

    //所有分类
    public List<Category> list();

    public Category getByName(String name);

    public void update(Category category);

    public void delete(int id);

}
